package com.twu.biblioteca.ui.menus.users;

import com.twu.biblioteca.library.Library;
import com.twu.biblioteca.ui.menus.AbstractMenu;

/**
 * @author Alvi Jonathan Sait
 */
public class LoginMenu extends AbstractMenu {

    public LoginMenu(Library library) {
        super(library);
    }

    @Override
    public String getOutput() {
        return "Please enter your credentials";
    }

    @Override
    public String getUserPrompt() {
        return "Please enter your username";
    }

    @Override
    public AbstractMenu handleInput(final String username) {
        return new PasswordMenu(getLibrary(), username);
    }
}
